package com.club;

import com.club.config.SysConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;
@SpringBootApplication
public class ClubSystemApplication {
    public static void main(String[] args) throws InterruptedException {
        File file =new File(SysConfig.UPLOAD_OIR);
        if(!file.exists()){
            System.out.println("没有检测到静态资源文件夹，需要一定时间......");
            Thread.sleep(1000);
            file.mkdirs();
            System.out.println("静态资源文件夹创建成功......");
        }
        SpringApplication.run(ClubSystemApplication.class, args);
    }
}
